package com.yilin.tms.core.entity.capital;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yilin.tms.core.commons.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


@Entity
@Table(name = "capital_pay_channel")
@TableName(value = "capital_pay_channel")
public class PayChannel extends BaseEntity {

    /**
     * 银企直连通道类型
     * */
    public enum BankType {
        none(0, "非银行直连支付","其他支付平台"),
        cmbcBankPay(1, "民生银行银企直连","民生银行"),
        pabBankPay(2, "平安银行银企直连","平安银行");
        @EnumValue
        public Integer index;
        public String name;
        public String bankName;
        BankType(Integer index, String name,String bankName) {
            this.index = index;
            this.name = name;
            this.bankName = bankName;
        }
    }

    @Column(name = "organize_id")
    private String organizeId;//组织ID
    @Column(name = "organize_name")
    private String organizeName;//组织名称

    @Column(name = "bank_type")
    private BankType bankType;//所属銀行类型

    @Column(name = "bank_name")
    private String bankName;//銀行名称
    @Column(name = "bank_card_id")
    private String bankCardId;//银行卡
    @Column(name = "bank_card_no")
    private String bankCardNo;//银行卡号
    @Column(name = "hold_card_name")
    private String holdCardName;//持卡人


    public String getHoldCardName() {
        return holdCardName;
    }

    public void setHoldCardName(String holdCardName) {
        this.holdCardName = holdCardName;
    }

    public String getOrganizeId() {
        return organizeId;
    }

    public void setOrganizeId(String organizeId) {
        this.organizeId = organizeId;
    }

    public String getOrganizeName() {
        return organizeName;
    }

    public void setOrganizeName(String organizeName) {
        this.organizeName = organizeName;
    }

    public BankType getBankType() {
        return bankType;
    }

    public void setBankType(BankType bankType) {
        this.bankType = bankType;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankCardId() {
        return bankCardId;
    }

    public void setBankCardId(String bankCardId) {
        this.bankCardId = bankCardId;
    }

    public String getBankCardNo() {
        return bankCardNo;
    }

    public void setBankCardNo(String bankCardNo) {
        this.bankCardNo = bankCardNo;
    }
}
